﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using CDMS.BLL;
using System.Data;
using System.Collections.Generic;

namespace CDMS
{
    public partial class XtraReportDemo : DevExpress.XtraReports.UI.XtraReport
    {
        public XtraReportDemo()
        {
            InitializeComponent();
            DataTable table = new DataTable();
            Customer_BLL c = new Customer_BLL();
            table = c.GetALL();
            this.DataSource = table;
            this.DataMember = table.TableName;
            this.BindData();

         
        }

        public void BindData()
        {
            xrLabel2.DataBindings.Add("Text", DataSource, "Customer_Code");
            xrLabel3.DataBindings.Add("Text", DataSource, "Customer_Name");
        }

        void CreateHeader()
        {

        }

    }
}
